package com.tianpengtech.common.mock.impl.numberic;

import java.util.Random;
import com.tianpengtech.common.mock.impl.AbstractNumberMock;

/**
 *随机生成指定范围内的相关数据方法
 */
public class IntegerMock extends AbstractNumberMock<Integer>{

	@Override
	public Integer mockData(int min ,int max) {
		Random random=new Random();
		int result = random.nextInt(max)%(max-min+1) + min;
		return result;
	}
}
